export type LeakageTempData = {
  id: number
  name: string
  user_id: string | number
  company_id: string | number
  department_id: string | number
  os: number
  scope: number
  permissions: number
  keyword_json: string
  process_json: string //
  netfilter_json: string //普通策略？
  netfilter_access_rule_json: string //高级策略设置？
  netfilter_identy_rule_json: string //对外策略设置？
  netfilter_rule_json: string //驱动配置？
  watermark_para_json: string //水印策略？
  watermark_json: string //水印策略？
  weight: number
  oper: number
  sub: number
  [key: string]: any
}

export type ProcessData = {
  process_md5: string //MD5
  process_type: string //类型
  process_policy: string //策略
  process_WriteDirectory: string //重定向位置
  process_UnReDirectory: string //不进行重定向
  process_lettterDrives: string //挂载位置
}

export type ProcessFormData = {
  os: string
  RedirControl: string //yes开启  no关闭
  process: ProcessData[]
  process_json: string
}

// 应用层网络协议
export type Protocol = {
  id: string
  protocol: string
  desc: string
}

// 应用层协议识别方法
export type NormalPolicyAppLevel = {
  pid: string
  desc: string //描述 默认值：default rule
  config_action: string //配置动作
  action: string //规则的默认动作
  level: string[] //
  level_3: Protocol[]
  level_4: Protocol[]
  level_5: NormalPolicyAppLevel[]
}

export type NormalPolicyData = {
  enable: number //启用1   禁用0
  appLevel: NormalPolicyAppLevel[]
  netfilter_json: string
}

//水印策略
export type WaterPolicyData = {
  font: string
  margin: string
  color: string
}

//文字过滤策略
export type TextPolicyData = {
  text: string //？？？字段名未知
}

//沙箱管理
export type BoxData = {
  permissions: string[]
}